package com.rattkin.model.vo
{	
	import mx.formatters.DateFormatter;

	[RemoteClass(alias="GameVO")]
	public class GameVO
	{
        public var id:int;
        private var _datetime:Date;
        public var flags:String;
        public var duration:int;
        
		public function get datetime():Date
		{
		    return _datetime;
		}
 
		public function set datetime(value:*):void
		{
		    var df:DateFormatter = new DateFormatter();
            df.formatString = "YYYY-MM-DD HH:NN:SS";
            var dateString:String = df.format(value as String);
            var d:Date = DateFormatter.parseDateString(dateString);
            _datetime = d;
		}         
        
	}
} 
